$(document).ready(
	function(){
		$('#a-to-add').on('click',function(event){
			event.preventDefault();
			$.ajax({
				url:$(this).attr('href'),
				type:'GET',
				data:{story_title:$('#story_title').val(),story_dev:$("#story_dev").val(),story_cross_tester:$('#story_cross_tester').val(),story_qat_tester:$('#story_qat_tester').val(),story_inline_status:$('#story_inline_status').val(),story_bug_type:$('#story_bug_type').val(),story_comments:$('#story_comments').val()},
				success: function(data){
					alert(data.data);
					window.location.href ='index?p=1';
				}
			});
		});
		// $('#btn-update-story').on(click,function(event){
		// 	event.preventDefault();	
		// 	$.ajax({
		// 		url:'ajaxDoUpdateStory?',
		// 		type:'POST',
		// 		data:{story_id:$('#story_id').val(),story_inline_status:$("#story_inline_status").val(),story_bug_type:$('#story_bug_type').val(),story_comments:$('#story_comments').val()}
		// 		success: function(data){
		// 			alert(data.data);
		// 			alert(1);
		// 			window.location.href ='index?p=1';
		// 		}
		// 	});
		// });
	});